package com.lsc.record.core.entity;

import java.util.List;

import com.lsc.record.core.listener.BaseEntityInsertListener;
import com.lsc.record.core.listener.BaseEntityUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.RelationOneToOne;
import com.mybatisflex.annotation.Table;

@Table(value="dm_listview",onInsert = BaseEntityInsertListener.class,onUpdate = BaseEntityUpdateListener.class)
public class DmListview extends BaseEntity{
	
	private String typeId;

	@Column(ignore = true)
	@RelationOneToOne(selfField = "typeId",targetField = "id")
	private DmType type;
	
	@Column(ignore = true)
	@RelationOneToMany(selfField = "id",targetField = "listId",orderBy = "sort_index")
	private List<DmListviewItem> items;
	
	private String conditionStr;

	public String getTypeId() {
		return typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

	public DmType getType() {
		return type;
	}

	public void setType(DmType type) {
		this.type = type;
	}

	public List<DmListviewItem> getItems() {
		return items;
	}

	public void setItems(List<DmListviewItem> items) {
		this.items = items;
	}

	public String getConditionStr() {
		return conditionStr;
	}

	public void setConditionStr(String conditionStr) {
		this.conditionStr = conditionStr;
	}
	
	
	
}
